﻿using Consul;

namespace Basic.Cluster.Abstract;

/// <summary>
/// 服务发现
/// </summary>
public interface IDiscover
{
    /// <summary>
    /// 添加服务注册
    /// </summary>
    /// <param name="client"></param>
    /// <returns></returns>
    void AddRegister(ConsulClient client);

    /// <summary>
    /// 获取服务
    /// </summary>
    /// <returns></returns>
    Dictionary<string, AgentService> GetService();
}